#include "custom_list_widget.h"

CustomListWidget::CustomListWidget(QWidget *parent)
                : QListWidget(parent)
{
    this->setAttribute(Qt::WA_MouseTracking,false);
}
bool CustomListWidget::eventFilter(QObject *obj, QEvent *ev)
{
    if(obj == this)
    {
        if(ev->type() == QEvent::MouseButtonPress
                || ev->type() == QEvent::MouseButtonRelease
                || ev->type() == QEvent::MouseButtonDblClick
                || ev->type() == QEvent::MouseMove
                || ev->type() == QEvent::HoverEnter
                || ev->type() == QEvent::HoverLeave
                || ev->type() == QEvent::HoverMove
                || ev->type() == QEvent::Enter
                || ev->type() == QEvent::Leave
                || ev->type() == QEvent::ToolTip)
        {
            return true;
        }
    }

    return QObject::eventFilter(obj,ev);


}
void CustomListWidget::enterEvent(QEvent *e)
{
    Q_UNUSED(e);
    return;
}
void CustomListWidget::mouseMoveEvent(QMouseEvent *e)
{
    Q_UNUSED(e);
    return;
}
void CustomListWidget::mousePressEvent(QMouseEvent *e)
{
    Q_UNUSED(e);
    return;
}
void CustomListWidget::mouseReleaseEvent(QMouseEvent *e)
{
    Q_UNUSED(e);
    return;
}
